package com.wx.multicaster;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.context.event.SimpleApplicationEventMulticaster;
import org.springframework.stereotype.Component;

import java.util.concurrent.Executors;

public class MyApplicationEventMulticaster extends SimpleApplicationEventMulticaster {

	public MyApplicationEventMulticaster() {
		setTaskExecutor(Executors.newSingleThreadExecutor());
	}
}
